package string;

import java.util.Arrays;

public class SplitDemo {
    public static void main(String[] args) {
        String str = "abc123def546hig789";
        String[] data = str.split("[0-9]+");
        System.out.println(Arrays.toString(data));

        String str1 = "123.456.789";
        data = str1.split("\\.");
        System.out.println(Arrays.toString(data));

        String str2 = "=123=456==456======";
        data = str2.split("=");
        System.out.println(Arrays.toString(data));
        System.out.println(data.length);
    }
}
